package fr.upmc.alasca.centreCalcul.interne.machinePhysique.coeur.connectors;

import fr.upmc.alasca.centreCalcul.interne.machinePhysique.coeur.interfaces.CoeurOperateurI;
import fr.upmc.alasca.centreCalcul.objets.EtatCoeur;
import fr.upmc.components.connectors.AbstractConnector;

public class CoeurOperateurConnector
extends AbstractConnector
implements CoeurOperateurI
{
	@Override
	public EtatCoeur getEtat() throws Exception {
		return ((CoeurOperateurI)this.offering).getEtat();
	}

	@Override
	public String getUriApplication() throws Exception {
		return ((CoeurOperateurI)this.offering).getUriApplication();
	}

	@Override
	public float getFrequence() throws Exception {
		return ((CoeurOperateurI)this.offering).getFrequence();
	}

	@Override
	public boolean aReservationFrequenceEnCours() throws Exception {
		return ((CoeurOperateurI)this.offering).aReservationFrequenceEnCours();
	}

	@Override
	public float getFrequenceReservee() throws Exception {
		return ((CoeurOperateurI)this.offering).getFrequenceReservee();
	}

	@Override
	public void allouerCoeur(String uriMachineVirtuelle) throws Exception {
		((CoeurOperateurI)this.offering).allouerCoeur(uriMachineVirtuelle);
	}

	@Override
	public void desallouerCoeur() throws Exception {
		((CoeurOperateurI)this.offering).desallouerCoeur();
	}

	@Override
	public void changerFrequence() throws Exception {
		((CoeurOperateurI)this.offering).changerFrequence();
	}

	@Override
	public void reserverCoeur(String uriApplication) throws Exception {
		((CoeurOperateurI)this.offering).reserverCoeur(uriApplication);
	}

	@Override
	public void dereserverCoeur() throws Exception {
		((CoeurOperateurI)this.offering).dereserverCoeur();
	}

	@Override
	public float reserverFrequence(float frequence) throws Exception {
		return ((CoeurOperateurI)this.offering).reserverFrequence(frequence);
	}
}
